<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>公共嵌套模板</title>
</head>
<body>

<th:blcok th:fragment="loadJsCSS">
    <script>
        window.loadingSlogan = ['.page-loaded'];
    </script>
    <th:block th:replace="common/common :: jscss"/>
</th:blcok>

<th:blcok th:fragment="confJscss">
    <th:block th:replace="common/common :: jscss"/>
    <script src="/static/js/zmn.lay.js?v=20220303001"></script>
<!--    <script src="/static/js/zmn.lay.util.js?v=1.1"></script>-->
</th:blcok>

<!-- jscss -->
<th:block th:fragment="jscss">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="shortcut icon" href="//res.xiujiadian.com/static/favicon.ico"/>
    <script th:inline="javascript">
        window.paceOptions = {
            restartOnRequestAfter: false,
            elements: {
                selectors: window.loadingSlogan
            },
            //ajax: false, // disabled
            document: false, // disabled
            eventLag: false, // disabled
        };
        setTimeout(function(){
            Pace.stop();
        }, 5000)

        document.domain = 'xiujiadian.com';

        var OMS_BASE_URL = location.origin.indexOf('local') === -1
            ? [[${session.OMS.value}]]
            : location.origin;

        var PLAT_BASE_URL = [[${session.PLAT.value}]];

        var SYS_BASE_URL_ENUM = {
            oms: [[${session.OMS.value}]],
            plat: [[${session.PLAT.value}]],
            res: [[${session.RES.value}]],
            dms: [[${session.DMS.value}]],
        };
        // 全局占位
        var plat;
        // 全局占位
        var platWork;
        // 全局版本号
        var version = 20221013001;

        // 平台标识
        var platMark = {
            ZMN : 10,   // 啄木鸟平台标识
            YEYX : 20,  // 言而有信平台标识
            YBWX : 30,  // 一步维修平台标识
            CNHB : 40,  // 川南环保一步维修
        }

        // 业务类型
        var BIZ_TYPE = {
            C: 1, // 保外单
            F: 2, // 保内单
            B: 3  // 工程单
        }
        // 公司类型
        var COMPANY_TYPE = {
            SUBSIDIARY : 120,   // 子公司
            SERVICE : 130,  // 服务公司

            COMPANY_TYPE_MANUFACTURER:230, // 厂商
        }
        var COMPANY_SERVICE_TYPE = {
            COMPANY_TYPE_SERVICE_OCO : 10,   // 自营服务商
            COMPANY_TYPE_SERVICE_CCO : 20,  // 众包服务商
            COMPANY_TYPE_SERVICE_THIRD : 30,  // 第三方
        }

        // 工单类型
        var OMS_ORDER_TYPE = {
            ORDER_TYPE_NEW : 1, // 新单
            ORDER_TYPE_REWORK : 2, // 返修单
            ORDER_TYPE_REFUND : 3, // 退款单
            ORDER_TYPE_COMPENSATE : 4 // 赔偿单
        }
        /**
         * 随机选择 AK 字符串
         * @returns {string} AK 字符串
         */
        function generatorBaiduMapAK() {
            var o = [[${#baiduMapUtil.getWebAk()}]];
            return o;
        }

    </script>
    <script src="//res.xiujiadian.com/static/js/plugins/pace/pace.min.js"></script>
    <link rel="stylesheet" href="//res.xiujiadian.com/static/js/plugins/pace/pace.min.css">

    <link rel="stylesheet" type="text/css" href="/static/lay/layui/css/layui.css" media="all">
<!--    <link rel="stylesheet" th:href="${ZMN_URL_ENV}+'res.xiujiadian.com/static/lay/style/admin.css'">-->

    <link rel="stylesheet" type="text/css" href="/static/lay/style/admin.css?v=2022060111001" media="all">
    <!--    <link rel="stylesheet" type="text/css" href="//res.xiujiadian.com/static/lay/layui/css/layui.min.css" media="all">-->
    <!--    <link rel="stylesheet" type="text/css" href="//res.xiujiadian.com/static/lay/style/admin.css" media="all">-->

    <link rel="stylesheet" href="//img1.xiujiadian.com/static/common/styles/common.min.css">
    <link rel="stylesheet" href="/static/style/main.css?v=20221013001">
    <link rel="stylesheet" href="/static/style/order/order.css?v=20221013001">
<!--    <link rel="stylesheet" th:href="${ZMN_URL_ENV}+'res.xiujiadian.com/static/lay/style/admin.css'">-->
    <script src="//res.xiujiadian.com/static/js/plugins/polyfill/polyfill.min.js"></script>
    <!--&lt;!&ndash;  含有 OMS 特殊逻辑，因此用本地版本  &ndash;&gt;-->
    <!--<script th:src="|//res.xiujiadian.com/static/lay/layui/layui.min.js|"></script>-->
    <!--<script th:src="|//res.xiujiadian.com/static/js/common/zmn.lay.config.min.js?v=20200305|"></script>-->
    <!--<script th:src="|//res.xiujiadian.com/static/js/common/zmn.lay.js|"></script>-->
    <!--<script th:src="|//res.xiujiadian.com/static/js/common/zmn.lay.util.js|"></script>-->

    <script th:src="|//res.xiujiadian.com/static/lay/layui/layui.min.js?v=1.0|"></script>
    <script th:src="|//res.xiujiadian.com/static/js/common/zmn.lay.min.js?v=1.2|"></script>
    <script th:src="|${session.RES.value}/static/js/common/zmn.lay.config.min.js?v=1.0|"></script>
    <script th:src="|//res.xiujiadian.com/static/js/common/zmn.lay.util.js?v=1.0|"></script>
    <script th:src="|//res.xiujiadian.com/static/js/plugins/gwm/gwm.min.js?v=1.0|"></script>
    <script th:src="|/static/js/zmn.common.js?v=202206010101|"></script>
    <script th:src="|/static/js/module/zmn.config.js?v=202120601001|"></script>
</th:block>

<!-- nav-menu -->
<div th:fragment="nav-menu">
    <li class="selected"><a href="//plat.xiujiadian.com/" target="_blank">平台管理</a></li>
    <li><a href="//oms.xiujiadian.com/" target="_blank">OMS</a></li>
    <li><a href="//crm.xiujiadian.com/" target="_blank">CC/CRM</a></li>
    <li><a href="//scm.xiujiadian.com/" target="_blank">SCM</a></li>
</div>

<!-- menu -->
<div th:fragment="menu">

    <!-- 基础数据 -->
    <li data-name="art" class="layui-nav-item" th:if="${#authPermit.checkPermits(false, '/news/list.action')}">

        <a href="javascript:;" lay-tips="内容管理" lay-direction="2">
            <i class="layui-icon layui-icon-template"></i>
            <cite>基础数据</cite>
        </a>

        <dl class="layui-nav-child">
        </dl>
    </li>

    <!-- 系统管理 -->
    <li data-name="set" class="layui-nav-item"
        th:if="${#authPermit.checkPermits(false, '/area/list.action', '/sms/template/list.action', '/mc/staff/listForOnline.action', '/mc/log/syslog/list.action', '/system/tools.action', '/system/cache/list.action', '/system/search/list.action')}">

        <a href="javascript:;" lay-tips="系统管理" lay-direction="2">
            <i class="layui-icon layui-icon-set"></i>
            <cite>系统管理</cite>
        </a>
        <dl class="layui-nav-child"></dl>
    </li>

</div>

<!-- pager -->
<div th:fragment="pager">
    <form id="pagerForm" method="post" action="#rel#">
        <input type="hidden" name="pageIndex" th:value="${vo.pageIndex}"/>
        <input type="hidden" name="pageSize" th:value="${vo.pageSize}"/>
        <input type="hidden" name="orderField" th:value="${vo.orderField}"/>
        <input type="hidden" name="orderDirection" th:value="${vo.orderDirection}"/>
    </form>
    <div class="panelBar"
         th:with="targetType=${#strings.isEmpty(#httpServletRequest.getParameter('targetType')) ? 'navTab' : #httpServletRequest.getParameter('targetType')}">
        <div class="pages">
            <span>每页 </span>
            <select name="pageSize"
                    th:onchange="'dwzPageBreak({targetType:\'' + ${targetType} + '\',data:{pageSize:this.value}})'"
                    class="combox">
                <option value="10" th:selected="${vo.pageSize == 10}">10</option>
                <option value="20" th:selected="${vo.pageSize == 20}">20</option>
                <option value="30" th:selected="${vo.pageSize == 30}">30</option>
                <option value="40" th:selected="${vo.pageSize == 40}">40</option>
                <option value="80" th:selected="${vo.pageSize == 80}">80</option>
                <option value="100" th:selected="${vo.pageSize == 100}">100</option>
                <option value="200" th:selected="${vo.pageSize == 200}">200</option>
                <option value="300" th:selected="${vo.pageSize == 300}">300</option>
            </select>
            <span th:text="|共 ${vo.totalCount} 条结果|"> 共 xxx 条结果</span>
        </div>
        <div class="pager" th:targetType="${targetType}" th:totalCount="${vo.totalCount}" th:pageSize="${vo.pageSize}"
             pageNumber="10" th:currentPage="${vo.pageIndex}"></div>
    </div>
</div>
<!-- jscss -->
<th:block th:fragment="jscssNew(title)">
    <head>
        <title>[[${title}]]</title>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <script>
            document.domain = 'xiujiadian.com';
            // 平台标识
            var platMark = {
                ZMN : 10,   // 啄木鸟平台标识
                YEYX : 20,  // 言而有信平台标识
                YBWX : 30,  // 一步维修平台标识
                CNHB : 40,  // 川南环保一步维修
            }

            // 业务类型
            var BIZ_TYPE = {
                C: 1, // 保外单
                F: 2, // 保内单
                B: 3  // 工程单
            }

            // 工单类型
            var OMS_ORDER_TYPE = {
                ORDER_TYPE_NEW : 1, // 新单
                ORDER_TYPE_REWORK : 2, // 返修单
                ORDER_TYPE_REFUND : 3 // 退款单
            }

            /**
             * zmn自定义枚举/字典
             * @author heguanghua
             * @date 2018/10/19 14:06
             */
            var zmnEnum = {
                // 通用状态
                STATUS: { 0:"", 1:"停用", 2: "正常", 3: "锁定" },
                // 执行结果
                RESULT: { 0:"", 1:"失败", 2: "成功" },
                // 设备类型
                DEVICE_TYPE: { 0:"", 1:"windows", 2: "mac", 3: "linux", 11: "iOS", 12: "android" },
                // 来源类型
                FROME_TYPE: { 0:"", 1:"web", 2: "wap", 3: "ios", 4: "android", 5: "weixin" },
                // 排他性
                MUTEX_TYPE: { 0:"", 1:"全局互斥", 2: "局部互斥", 3: "不互斥" },
                // 任务类型
                TASK_TYPE: { 10: "SEM/SEO", 11: "SEM", 12: "生活分类", 21: "SEO" },
                // 环境类型
                ENV_TYPE: {dev: 'develop', test: 'testing', test2: 'test2ing', uat: 'uating', prod: 'production' }
            };

            /**
             * zmn 环境标记
             * @author yangjiangming
             * @date 2020/01/09 10:20:52
             */
            var zmnEnv = (function () {
                var host = location.host;
                if (/:/.test(host)) {
                    return zmnEnum.ENV_TYPE.dev;
                }else if (/test2-/.test(host)) {
                    return zmnEnum.ENV_TYPE.test2;
                } else if (/test-/.test(host)) {
                    return zmnEnum.ENV_TYPE.test;
                }else if (/uat-/.test(host)) {
					return zmnEnum.ENV_TYPE.uat;
				}else if (/pre-/.test(host)) {
					return zmnEnum.ENV_TYPE.pre;
				} else {
                    return zmnEnum.ENV_TYPE.prod;
                }
            })();

        </script>

        <link rel="shortcut icon" th:href="|//res.xiujiadian.com/static/favicon.ico|"/>
        <link rel="stylesheet" th:href="|//res.xiujiadian.com/static/lay/layui/css/layui.min.css|">
        <link rel="stylesheet" th:href="|//res.xiujiadian.com/static/style/extend-js.min.css|">
        <link rel="stylesheet" th:href="|//res.xiujiadian.com/static/lay/style/admin.min.css?v=1.0|">
        <script th:src="|//res.xiujiadian.com/static/lay/layui/layui.min.js?v=1.0|"></script>
        <script th:src="|//res.xiujiadian.com/static/js/common/zmn.lay.min.js?v=1.2|"></script>
        <script th:src="|//res.xiujiadian.com/static/js/common/zmn.lay.config.min.js?v=1.0|"></script>
        <script th:src="|/static/js/zmn.common.js?v=20221013001|"></script>
        <script th:src="|/static/js/module/zmn.config.js?v=20221013001|"></script>
        <!--        <th:block th:with="environ=${#strings.substringBefore(#strings.substringAfter(session.OMS.value,'://'),'.xiu')}"
                          th:switch="${environ}">
                    <th:block th:case="'dev-oms'">
                        <link rel="shortcut icon" href="//dev-res.xiujiadian.com/static/favicon.ico"/>
                        <link rel="stylesheet" href="//dev-res.xiujiadian.com/static/lay/layui/css/layui.min.css">
                        <link rel="stylesheet" href="//dev-res.xiujiadian.com/static/lay/style/admin.min.css">
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//dev-res.xiujiadian.com/static/lay/layui/layui.min.js"></script>
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//dev-res.xiujiadian.com/static/js/common/zmn.lay.min.js?v=1.3"></script>
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//dev-res.xiujiadian.com/static/js/common/zmn.lay.config.js?v=1.3"></script>
                    </th:block>
                    <th:block th:case="'test-oms'">
                        <link rel="shortcut icon" href="//test-res.xiujiadian.com/static/favicon.ico"/>
                        <link rel="stylesheet" href="//test-res.xiujiadian.com/static/lay/layui/css/layui.min.css">
                        <link rel="stylesheet" href="//test-res.xiujiadian.com/static/lay/style/admin.min.css">
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//test-res.xiujiadian.com/static/lay/layui/layui.min.js"></script>
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//test-res.xiujiadian.com/static/js/common/zmn.lay.min.js?v=1.3"></script>
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//test-res.xiujiadian.com/static/js/common/zmn.lay.config.js?v=1.3"></script>
                    </th:block>
                    <th:block th:case="*">
                        <link rel="shortcut icon" href="//res.xiujiadian.com/static/favicon.ico"/>
                        <link rel="stylesheet" href="//res.xiujiadian.com/static/lay/layui/css/layui.min.css">
                        <link rel="stylesheet" href="//res.xiujiadian.com/static/lay/style/admin.min.css">
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//res.xiujiadian.com/static/lay/layui/layui.min.js"></script>
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//res.xiujiadian.com/static/js/common/zmn.lay.min.js?v=1.3"></script>
                        &lt;!&ndash;suppress JSUnresolvedLibraryURL &ndash;&gt;
                        <script src="//res.xiujiadian.com/static/js/common/zmn.lay.config.min.js?v=1.3"></script>
                    </th:block>
                </th:block>-->
        <script>
            layui.config({
                version: 20221013001
            });
        </script>
    </head>
</th:block>
</body>
</html>